package com.zb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zb.dao.RoleDAO;
import com.zb.entity.Role;
import com.zb.service.RoleService;
@Service
public class RoleServiceImpl implements RoleService{

	@Autowired
	private RoleDAO roleDAO;
	
	@Transactional(readOnly = true)
	public List<Role> listRole() {
		List<Role> list = roleDAO.listRole();
		return list;
	}

}
